#define _CRT_SECURE_NO_WARNINGS 1

#include"Date.h"


Date::Date(int year, int month, int day)
	//:aa(year)
{
	_year = year;
	_month = month;
	_day = day;
	
}

Date::Date(Date& dd)
	//:aa(dd.aa)
{
	_year = dd._year;
	_month = dd._month;
	_day = dd._day;
}

void Date::Print() const
{
	cout << _year << "/" << _month << "/" << _day << endl;
}


ostream& operator<<(ostream& out, Date& dd)
{
	out << dd._year << '/' << dd._month << '/' << dd._day;
	return out;
}

istream& operator>>(istream& in, Date& dd)
{
	in >> dd._year >> dd._month >> dd._day;
	return in;
}



